package springboot.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.List;

@Setter
@Getter
@AllArgsConstructor
@ToString
public class Role {
    private int id;
    private String role;
    private String description;
    List<Permission> permissions;
    public void setPermissions(List<Permission> permissionsByIds) {
        this.permissions = permissionsByIds;
    }
    public Role( ) {
    }
    public Role(int id, String role, String description ) {
        this.id = id;
        this.role = role;
        this.description = description;
    }
}
